# -*- coding: UTF-8 -*-
__author__ = 'kidozh'

import os

# keep in secret all the time
SECRET_KEY = '__please_input_your_secret_key___'

# host for database
DB_HOST = 'localhost'

# username for database
DB_USER = 'root'

# password for database
DB_PASSWD = ''

# database's type
DB_TYPE = 'mysql'

# driver for SQLalchemy
DB_DRIVER = ''

# which database we should choose
DB_NAME = '__please_specify_your_database_name___'

# for installed Apps we will search these string then
INSTALLED_APPS = (
    'acmCralwer',
    'contrib.admin',
    'conf',
)

# for root urls
ROOT_URLCONF = 'urls'

# for log file
LOGFILE = 'log/site.log'
# LOGFILE = False

# for mail
MAIL_SERVER = "__your_server_name__"
MAIL_PORT = 465
MAIL_USERNAME = "xxx@xxx.xxx"
MAIL_PASSWORD = ""

# administrator list
ADMINS = ["xxx@xxx.xxx", ]

# set debug value according to system type
if os.environ.get('OS') == 'Windows_NT':
    DEBUG = True

else:
    DEBUG = False
    DB_PASSWD = '__password__on__server'

    DB_NAME = 'npuacm'

# for timezone
USE_TZ = True

TIME_ZONE = 'Asia/Shanghai'